 - create a thread that loops on a small sleep (1/2 second)
- inside this loop, increment a 'gtime' variable atomically
- this is the heartbeat for the entire event timer library
- all other timers are passive timers based on this active timer



event_timer_loop ()
{
    sleep(EVENT_TIME_JIFFY);

    atomic_set(gtime, gettimeofday);

    for_all_active_timers(timer) {
        if (timer->target >= gtime) {
            event_send(timer->evm, timerevent);
            event_remove_timer(active_timers, timer);
            if (timer->repeat) {
                timer->target += timer->target;
                event_insert_timer(active_timers, timer);
            } else {
                event_insert_timer(inert_timers, timer);
            }
        }
    }
}




event_timer_create ()
{



}


event_timer_start (timer, delta)
{
    cgtime = atomic_read(gtime);
    target = cgtime + delta;


